package com.example.design_pattern.state;

import com.example.design_pattern.exception.WallEntryException;

/**
 * 抽象状态
 */
public interface WallState {

    /**
     * 念咒语
     * @param wallEntry 环境对象
     * @param spellContent 咒语内容
     */
    void spell(WallEntry wallEntry, String spellContent) throws WallEntryException;

    /**
     * 穿墙
     * @param wallEntry 环境对象
     */
    void pass(WallEntry wallEntry) throws WallEntryException;

}
